package com.example.victory;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

// 加载apollo配置中心的多个命名空间下的配置信息，application存放公共配置，database存放数据库配置，inner-***-**下存放当前微服务的私有配置
@EnableSwagger2
@SpringBootApplication
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@EnableFeignClients
@EnableScheduling
@EnableApolloConfig({"inner-business-customer", "application", "database"})
@ComponentScan(basePackages = {"com.cgws.fintech.inner.business.customer"
		, "com.example.victory.utils", "com.example.victory.common"})
public class VictoryApplication {

	public static void main(String[] args) {
		SpringApplication.run(VictoryApplication.class, args);
	}

}
